/* 参数配置 */
const config = {
	/* 环境 */
	env: 'dev', // dev/test/pre/prod
	/* 接口前缀 */
	apiBaseUrl: '/wvms',
}

// env 配置
const envConfig = {
	dev: {
		// apiHost: 'https://devapi.qichengcx.com',
		// imgUrl: 'https://devimage.qichengcx.com/www/'
		// apiHost: 'http://192.168.1.229:8000',
		// imgUrl: 'https://192.168.1.229:8098/www/',
		apiHost: 'https://95830600vfey.vicp.fun',
		imgUrl: 'https://95830600vfey.vicp.fun/www/',
		// apiHost: 'https://110jp4684fi92.vicp.fun',
		// imgUrl: 'https://110jp4684fi92.vicp.fun/www/',
	},
	test: {
		// apiHost: 'https://testapi.qichengcx.com',
		// imgUrl: 'https://testimage.qichengcx.com/www/'
		// apiHost: 'http://192.168.1.229:8000',
		// imgUrl: 'https://192.168.1.229:8098/www/',
		apiHost: 'https://95830600vfey.vicp.fun',
		imgUrl: 'https://95830600vfey.vicp.fun/www/',
		// apiHost: 'https://110jp4684fi92.vicp.fun',
		// imgUrl: 'https://110jp4684fi92.vicp.fun/www/',
	},
	pre: {
		// apiHost: 'https://preapi.qichengcx.com',
		// imgUrl: 'https://image.qichengcx.com/www/'
		// apiHost: 'http://192.168.1.229:8000',
		// imgUrl: 'https://192.168.1.229:8098/www/',
		apiHost: 'https://95830600vfey.vicp.fun',
		imgUrl: 'https://95830600vfey.vicp.fun/www/',
		// apiHost: 'https://110jp4684fi92.vicp.fun',
		// imgUrl: 'https://110jp4684fi92.vicp.fun/www/',
	},
	prod: {
		// apiHost: 'https://api.qichengcx.com',
		// imgUrl: 'https://image.qichengcx.com/www/'
		// apiHost: 'http://192.168.1.229:8000',
		// imgUrl: 'https://192.168.1.229:8098/www/',
		apiHost: 'https://95830600vfey.vicp.fun',
		imgUrl: 'https://95830600vfey.vicp.fun/www/',
		// apiHost: 'https://110jp4684fi92.vicp.fun',
		// imgUrl: 'https://110jp4684fi92.vicp.fun/www/',
	},
}

// export { 
//   ...config, 
//   ...envConfig[config.env] 
// }
// 导出合并后的命名属性
export const apiHost = envConfig[config.env].apiHost;
export const apiBaseUrl = config.apiBaseUrl;
export const env = config.env;